<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Title</title>
  <script src="js/a.js"></script>
  <script src="js/b.js"></script>
</head>
<body>
<script>
  // 使用模块化后不再受全局变量的干扰
  console.log(js_a);
  console.log('index:js_a.a:' + js_a.a);
  console.log('index:js_b.a:' + js_b.a);
</script>
</body>
</html>
